<div class="row">
    <div class="col-md-12">
        <div class="block">
            <div class="block-title">
                <h2><strong>Listado de Series</strong></h2>
            </div>
            
            <div class="table-responsive">
                <table id="series" class="table table-vcenter table-condensed table-bordered">
                    <thead>
                        <tr>
                            <th class="text-center">Nro.</th>
                            <th class="text-center">Desde</th>
                            <th class="text-center">Hasta</th>
                            <th class="text-center">Serie</th>
                            <th class="text-center">Acciones</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i=1;?>
                        <?php foreach ($series as $serie):?>
                        <tr>
                            <td class="text-center"><?php echo $serie['Serie']['id'];?></td>
                            <td><?php echo $serie['Serie']['desde'];?></td>
                            <td><?php echo $serie['Serie']['hasta'];?></td>
                            <td><?php echo $serie['Serie']['nombre'];?></td>
                            <td class="text-center">
                                <div class="btn-group">
                                    <div class="btn-group">
                                        <a href="<?php echo $this->Html->url(array('Controller'=>'Series','action'=>'editar',$serie['Serie']['id']));?>"data-toggle="tooltip" title="Editar Serie" class="btn btn-xs btn-primary"><i class="fa fa-pencil"></i></a>
                                        <?php echo $this->Html->link ('<i class="fa fa-times"></i>',array('action'=>'delete', $serie['Serie']['id']),array('escape'=>false,'confirm'=>'desea eliminar','class'=>'btn btn-xs btn-danger','title'=>'Eliminar'));?>
                                  
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <?php endforeach;?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        TablesDatatables.init();
    });
    $(document).ready(function(){
        $('#series').dataTable();
    })    ;
</script>
